#-------------------------------------------------
#
# Project created by QtCreator 2016-04-24T10:18:20
#
#-------------------------------------------------
include(../global.pri)


QT     += widgets
QT     += network
greaterThan(QT_MAJOR_VERSION, 4){
    # QT5
    QT       += webengine
    QT       += webenginewidgets
}else{
    # QT4
    QT      += webkit
}



TARGET = QxWebWidgets
TEMPLATE = lib
#CONFIG += staticlib
CONFIG += dll
DEFINES += QX_WEBWIDGETS_DLL




SOURCES += \
    qx_web_view.cpp

HEADERS += \
    qx_web_view.h \
    qx_web_widgets_global.h
unix {
    target.path = /usr/lib
    INSTALLS += target
}

greaterThan(QT_MAJOR_VERSION, 4){
    # QT5
    SOURCES += \
        mywebenginepage.cpp \
        mywebengineview.cpp

    HEADERS += \
        mywebenginepage.h\
        mywebengineview.h
}

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../CxCommon/release/ -lCxCommon
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../CxCommon/debug/ -lCxCommon
else:unix: LIBS += -L$$OUT_PWD/../CxCommon/ -lCxCommon

INCLUDEPATH += $$PWD/../CxCommon
DEPENDPATH += $$PWD/../CxCommon

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../CxCommon/release/libCxCommon.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../CxCommon/debug/libCxCommon.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../CxCommon/release/CxCommon.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../CxCommon/debug/CxCommon.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../CxCommon/libCxCommon.a
